function DS001OpenDB()
{
	var testResult = new Object();
	try {
		
		var  dbname = "MyDB";
		var version = "1.0";
		var displayname = "MyDB";
		var sizeinbytes = 100000;
	
		var db = openDatabase(dbname, version, displayname, sizeinbytes);

		if (db.version=="1.0")
		{
			testResult.pass = true;
			testResult.description = "Open Database Successful:"+ db.version;
		}
		else
		{
			testResult.pass = false;
			testResult.description = "Open Database not Successful";			
		}
		return testResult;	
	} 
	catch (e) {
		testResult.pass = false;
		testResult.description = "Open Database not Successful:"+e.description;			
		return testResult;
	}
}	

function DS002OpenDBEmptyDBName()
{
	var testResult = new Object();
	try {
		
		var  dbname = "";
		var version = "1.0";
		var displayname = "EmptyDBName";
		var sizeinbytes = 100000;
	
		var db = openDatabase(dbname, version, displayname, sizeinbytes);

		if (db.version=="1.0")
		{
			testResult.pass = true;
			testResult.description = "OpenDB with EmptyDBName Successful:"+ db.version;
		}
		else
		{
			testResult.pass = false;
			testResult.description = "OpenDB with EmptyDBName not Successful";			
		}
		return testResult;	
	} 
	catch (e) {
		testResult.pass = false;
		testResult.description = "OpenDB with EmptyDBName not Successful:"+e.description;			
		return testResult;
	}
}
